import request from '@/util/request.js'

export const getAllUser = () => {
    return request.get('/users')
}


export const getCode = () => {
    return request.get('/code')
}


//
export const UserLogin = (data) => {
    var params = new URLSearchParams();
    for (let key in data) {
        params.append(key, data[key])
    }
    return request.get('/login', {params})
}
